An exception occurred processing JSP page -Home.jsp

59

org.apache.jasper.JasperException: An exception occurred processing JSP page /Home.jsp at line 20

17: String sql = "select usertype from user_detail";
18: 
19: try{
20: 	Class.forName(driverName);
21: 	con = DriverManager.getConnection(url, user, password);
22: 	ps = con.prepareStatement(sql);
23: 	rs = ps.executeQuery(); 


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:578)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:461)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Comments

Submit
0 Comments